<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<base href="<%=basePath%>">
<body>
	<!-- 要处理居中 -->
	<div align="center" style="margin-top: 200px">
		<form:form modelAttribute="user" action="user/login">
			账号:<form:input path="name" />
			<br>
			密码:<form:password path="pwd" />
			<br>
			<input type="submit" value="登录">
			<a href="user/reg">注册</a>
		</form:form>
	</div>
</body>
</html>